<template>
	<div class="removeToken">
		清除token
		<p>{{tip}}</p>
		<br>
		<p @click="toindex">返回首页</p>
	</div>
</template>

<script>
	import { removeToken } from '@utils/auth'
	export default {
		name: 'removeToken',
		data () {
			return {
				tip: ''
			}
		},
		mounted() {
			this.removeToken()
		},
		methods: {
			removeToken () {
				removeToken()
				this.tip = '清除完成'
			},
			toindex () {
				window.location.replace('#/index')
			}
		}
	}
</script>

<style>
</style>
